import { createRouter, createWebHistory } from "vue-router";
import ShowPage from "@/components/Show.vue"; // 默认首页
import AccountPage from "@/views/AccountPage.vue";
import SecuritySettings from "@/views/SecuritySettings.vue";
import LoginBindings from "@/views/LoginBindings.vue";
import Info from "@/views/Info.vue";
import ResourceManager from "@/views/ResourceManager.vue";
import CreateClassroom from "@/views/CreateClassroom.vue";
import CoursePage from "@/views/CoursePage.vue";
import PersonalCenter from "@/views/PersonalCenter.vue";
import QuestionBank from "@/components/QuestionBank.vue"; // 新增题库组件
import TeachingClassrooms from "@/views/TeachingClassrooms.vue";
import Coursemanagement from "@/views/Coursemanagement.vue";
import NotificationForm from '@/views/notifications/notificationform.vue';//txg通知界面起
import AllNotifications from '@/views/notifications/allnotifications.vue';
import ClassNotifications from '@/views/notifications/classnotifications.vue';
import UnifiedNotifications from '@/views/notifications/unifiednotifications.vue';//txg通知界面止
import CreateQuestion from "@/views/CreateQuestion.vue";//新增试题


const routes = [
  { path: "/", name: "Show", component: ShowPage }, // 默认页面
  { path: "/account", name: "AccountPage", component: AccountPage }, //用户页面s
  { path: "/security", name: "SecuritySettings", component: SecuritySettings },//认证信息
  { path: "/loginbinding", name: "LoginBindings", component: LoginBindings },//绑定
  { path: "/info", name: "Info", component: Info },//认证
  { path: "/ResourceManager", name: "ResourceManager", component: ResourceManager },//资源库
  { path: "/CreateClassroom", name: "CreateClassroom", component: CreateClassroom },//创建课程
  { path: "/CoursePage", name: "CoursePage", component: CoursePage },//课程界面
  { path: "/PersonalCenter", name: "PersonalCenter", component: PersonalCenter },//个人中心界面
  { path: "/questionbank", name: "QuestionBank", component: QuestionBank }, // 题库页面
  { path: "/TeachingClassrooms", name: "TeachingClassrooms", component: TeachingClassrooms },//教学课堂界面
  { path: "/Coursemanagement", name: "Coursemanagement", component: Coursemanagement },
  { path: "/NotificationForm", name: "NotificationForm", component: NotificationForm },//通知发布界面
  { path: "/AllNotifications", name: "AllNotifications", component: AllNotifications },//全部通知界面
  { path: "/ClassNotifications", name: "ClassNotifications", component: ClassNotifications },//分班发布界面
  { path: "/UnifiedNotifications", name: "UnifiedNotifications", component: UnifiedNotifications },//统一发布界面
  { path: "/CreateQuestion", name: "CreateQuestion", component: CreateQuestion },//统一发布界面
  { path: "/course/:courseName", component: CoursePage },

];


const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;






